<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use App\Admin\Extensions\Traits\ModelTree;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class BlindBoxCategory extends Model
{
    use HasFactory;
    use ModelTree;
    
    protected $guarded = ['id'];
    
    public function scopeShow(Builder $builder)
    {
        return $builder->where('is_show', true);
    }
}
